package com.yzc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yzc.model.entity.ticket_order.OrderMain;
import com.yzc.model.vo.ticket_order.AttractionOrderVO;
import com.yzc.model.vo.ticket_order.FlightOrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TicketMainOrderMapper extends BaseMapper<OrderMain> {
    void insertOrderMain(OrderMain mainOrder);

    List<AttractionOrderVO> findAttractionOrdersByUserId(@Param("userId") Long userId, @Param("pageSize") Integer pageSize, @Param("offset") int offset);

    Long countAttractionOrders(Long userId);

    List<FlightOrderVo> findFlightOrdersByUserId(@Param("userId") Long userId, @Param("pageSize") Integer pageSize, @Param("offset") int offset);


    Long countFlightOrders(Long userId);
}
